package com.solution.decorator;

import org.displaytag.decorator.TableDecorator;

import com.solution.model.LevelType;

public class LevelDecorator extends TableDecorator{

	public String getActionEdit() {
		LevelType levelType = (LevelType)getCurrentRowObject();
		String levelTypeId = levelType.getId()+"";
		return "<a href=\"javascript:fnEditViewLevelDetails('"+ levelTypeId + "','Edit')\">Edit</a>"; 
	}
	
	public String getActionView() {
		LevelType levelType = (LevelType)getCurrentRowObject();
		String levelTypeId = levelType.getId()+"";
		return "<a href=\"javascript:fnEditViewLevelDetails('"+ levelTypeId + "','View')\">View</a>"; 
	}
}
